package com.sky.module.suppot.file.service;

import com.sky.module.suppot.file.domain.entity.FileEntity;
import com.sky.utils.Result;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author
 * @date 2023/2/28 23:09
 **/
public interface FileStorageService {
    Result<FileEntity> fileUpload(MultipartFile file, String path);

    /***
     * @description 文件的key
     * @param fileKey
     * @return com.sky.utils.Result<?>
     * @date 2023/3/1 0:36
     *
     */
    Result<?> delete(String fileKey);


    /***
     * @description 根据文件key 获取url 路径   fileKey 就是 /home/v1/dome
     *
     * @param fileKey
     * @return com.sky.utils.Result
     * @date 2023/3/2 13:14
     *
     */
    public Result<String> getFileUrl(String fileKey);


}
